import * as types from './../constants/ActionTypes';

/*
 * 指数行情 
 ================================================================*/
export function fetchMarket() {
  return  (dispatch) => {

  	let payload = { 
      market_status : 0, 
      message : '加载中' 
    };

    dispatch({
      payload ,
      type: [types.FETCH_MARKET, types.FETCH_MARKET_SUCCESS, types.FETCH_MARKET_FAILURE],
      meta: {
        fetch: [`hq/market`, { method: 'get'}]
      }  
    });
  };
}